namespace Admin2025.Domain.Entities.App;

public class AppRole : EntityBase
{
  public const string SuperAdminRoleName = "SuperAdmin"; // 新增超级管理员角色
  public string RoleName { get; set; } = null!;
  public string? Description { get; set; }   // 角色描述

  // 数据权限范围：如"All"、"Department"、"Self"
  public string DataScope { get; set; } = "Self";

  public List<AppPermission> Permission { get; set; } = new();
}